import layout from "@/views/layout";

export default [
	/* 插件页 */
	{
		path: "/plugins",
		meta: { title: "插件" },
		redirect: { name: "driver" },
		component: layout,
		children: [
			/* 复制插件 */
			{
				path: "/plugins/clipboard",
				name: "clipboard",
				meta: { title: "复制插件" },
				component: () => import(/* webpackChunkName: 'clipboard' */ "@/views/plugin_pages/clipboard"),
			},
			/* vue2-editor富文本 */
			{
				path: "/plugins/vue2-editor",
				name: "vue2-editor",
				meta: { title: "富文本" },
				component: () => import(/* webpackChunkName: 'vue2-editor' */ "@/views/plugin_pages/vue2-editor"),
			},
			/* 百度地图 */
			{
				path: "/plugins/vue-baidu-map",
				name: "vue-baidu-map",
				meta: { title: "百度地图" },
				component: () => import(/* webpackChunkName: 'vue-baidu-map' */ "@/views/plugin_pages/vue-baidu-map"),
			},
			/* 高德地图 */
			{
				path: "/plugins/vue-amap",
				name: "vue-amap",
				meta: { title: "百度地图" },
				component: () => import(/* webpackChunkName: 'vue-amap' */ "@/views/plugin_pages/vue-amap"),
			},
			/* 虚拟滚动 1 */
			{
				path: "/plugins/vue-virtual-scroll-list",
				name: "vue-virtual-scroll-list",
				meta: { title: "滚动" },
				component: () => import(/* webpackChunkName: 'vue-virtual-scroll-list' */ "@/views/plugin_pages/vue-virtual-scroll-list"),
			},
			/* antv/x6 */
			{
				path: "/plugins/antv-x6",
				name: "antv-x6",
				meta: { title: "antv-x6" },
				component: () => import(/* webpackChunkName: 'antv-x6' */ "@/views/plugin_pages/antv-x6"),
			},
			{
				path: "/plugins/echarts",
				name: "echarts",
				meta: { title: "echarts" },
				component: () => import(/* webpackChunkName: 'echarts' */ "@/views/plugin_pages/echarts/map"),
			},
		],
	},
];
